<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>INGRESO SISTEMA</title>
        <link href="style.css" rel="stylesheet" type="text/css" />


    </h:head>
    <h:body>
        
<div id="cerceve">
<div class="header"><div class="text" style="float:left">LA GEA SV</div></div>
<div class="formbody">
<h:form id="Datos">
    <p:growl id="mensajes" autoUpdate="true"></p:growl>
    <h:panelGrid columns="1" cellpadding="5px" cellspacing="5px"  >
        <p:inputText style="margin-left:20px; margin-top: 15px"  id="Usuario" value="#{indexBean.usuario}" required="true" ></p:inputText> 
    <p:watermark  for="Usuario" value="Ingrese su usuario"></p:watermark>
    <p:password style="margin-left:20px" id="Password" value="#{indexBean.password}" required="true" ></p:password> 
    <p:watermark for="Password" value="Ingrese su contraseña"></p:watermark>
    </h:panelGrid>
    <h:panelGrid columns="2" cellpadding="5px" cellspacing="5px"  >
        <p:commandButton update="Datos" actionListener="#{indexBean.validarCredenciales()}" style="margin-left:20px" value="INGRESAR"></p:commandButton>
    <h:commandLink value="olvide mi contraseña"></h:commandLink>
    </h:panelGrid>
</h:form>
</div>
</div>

    </h:body>
</html>
